package com.qiaoanju.back.dto.system;

import com.qiaoanju.back.domain.system.MenuModel;
import com.qiaoanju.back.domain.system.RoleModel;
import com.qiaoanju.back.domain.system.UserModel;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;
import java.util.List;

/**
 * Created by eversec on 2017/10/10.
 */
public class UserDto extends UserModel {


    //角色
    private List<RoleModel> rolePackage ;

    //菜单
    private List<MenuModel> menuPackage ;

    public UserDto() {
    }

    public UserDto(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }

    public List<RoleModel> getRolePackage() {
        return rolePackage;
    }

    public void setRolePackage(List<RoleModel> rolePackage) {
        this.rolePackage = rolePackage;
    }

    public List<MenuModel> getMenuPackage() {
        return menuPackage;
    }

    public void setMenuPackage(List<MenuModel> menuPackage) {
        this.menuPackage = menuPackage;
    }


    //最大权限角色
    private String core_role_name ;

    public String getCore_role_name() {
        return core_role_name;
    }

    public void setCore_role_name(String core_role_name) {
        this.core_role_name = core_role_name;
    }
}
